package com.lagou.service;

import java.text.ParseException;

/**
 * @author zy
 * @version 1.0
 * @date 2021/3/16 11:23
 */
public interface CodeService {

    /**
     * 生成验证码
     *
     * @return {@link String}
     */
    public String toGenerateVerificationCode();

    /**
     * 做发送电子邮件
     *
     * @param code         验证码
     * @param EmailAddress 电子邮件地址
     * @return {@link String}
     */
    public String doSendEmail(String code,String EmailAddress);

    /**
     * 检查代码
     *
     * @param code 代码
     * @return boolean
     */
    public String inspectionCode(String code) throws ParseException;

}
